package com.dragon.pear.common.inject;

import com.dragon.pear.pages.common.flash.FlashActivity;
import com.dragon.pear.pages.common.login.LoginActivity;
import com.dragon.pear.pages.common.main.MainActivity;
import com.dragon.pear.pages.common.reg.RegActivity;
import com.dragon.pear.pages.common.start.StartActivity;
import com.dragon.pear.pages.tab.main.home.HomeFragment;
import com.dragon.pear.pages.tab.main.market.MarketFragment;
import com.dragon.pear.pages.tab.main.message.MessageFragment;
import com.dragon.pear.pages.tab.main.mine.MineFragment;
import com.dragon.pear.pages.tab.main.order.OrderFragment;

import javax.inject.Singleton;

import dagger.Component;

/**
 * Create by Chris Chan
 * Create on 2023/3/14 17:15
 * Use for:
 * Explain:
 */
@Singleton
@Component(modules = {AppModule.class})
public interface AppComponent {
    //Activity
    void inject(FlashActivity activity);
    void inject(StartActivity activity);
    void inject(LoginActivity activity);
    void inject(RegActivity activity);
    void inject(MainActivity activity);

    //Fragment
    void inject(HomeFragment fragment);
    void inject(MarketFragment fragment);
    void inject(OrderFragment fragment);
    void inject(MessageFragment fragment);
    void inject(MineFragment fragment);

}
